package com.wings4.school.student

import com.wings4.school.academicconfiguration.AcademicClasses
import com.wings4.school.admission.Applicant

class StudentBasicInformation {
    Applicant applicant;
    String studentFirstName;
    String studentLast;
    String studentMiddle;
    String fatherName;
    String motherName;
    Gender gender;
    Religion religion;
    String presentAddress;
    String permanentAddress;
    Date dateOfBirth;
//    Date admissionDate;
    String gradientContactNo;
    String homeTelephoneNo;
//    String fatherName;
    String fatherOccupation;
    String fatherOfficeAddress;
    String fatherOfficeTelephoneNo;
    String fatherTelephoneNo;
//    String motherName;
    String motherOccupation;
    String motherOfficeAddress;
    String motherOfficeTelephoneNo;
    String motherContactNo;
    String photo;
    String sscRollNo;
    String sscRegistrationNo;
    String secondGuardianInformation;
    String nationality;
    String previousSchoolInformation;
    String previousSchoolAddress;
    String previousSchoolEmail;
    String previousSchoolTelephone;
    AcademicClasses lastAcademicClass;
    String lastResult;
    StudentType studentType;
    String status;



    static mapping = {
        dateOfBirth(sqlType: 'date');
//        admissionDate(sqlType: 'date');
    }

    static constraints = {
        applicant(nullable: true);
        nationality(nullable: true);
        previousSchoolInformation(nullable: true);
        fatherTelephoneNo(nullable: true);
        homeTelephoneNo(nullable: true);
        fatherOccupation(nullable: true);
        fatherOfficeAddress(nullable: true);
        motherContactNo(nullable: true);
        fatherOfficeTelephoneNo(nullable: true);
        motherOccupation(nullable: true);
        motherOfficeAddress(nullable: true);
        motherOfficeTelephoneNo(nullable: true);
        photo(nullable: true);
        sscRollNo(nullable: true);
        previousSchoolAddress(nullable: true);
        sscRegistrationNo(nullable: true);
        secondGuardianInformation(nullable: true);
        previousSchoolEmail(nullable: true);
        dateOfBirth(nullable: true);
        previousSchoolTelephone(nullable: true);
        lastAcademicClass(nullable: true);
//        admissionDate(nullable: true);
        lastResult(nullable: true);
        status(nullable: true);
        studentType(nullable: true);
    }
}
